package Solutions

func digitCount(num string) bool {
    count:=[10]int{}
    for i:=0;i<len(num);i++{
        count[num[i]-'0']++
    }
    for i:=0;i<len(num);i++{
        if count[i]!=int(num[i]-'0'){
            return false
        }
    }
    return true
    
}